/***********************************************************************
 * Module:  DataType.java
 * Author:  SilentSkyTA
 * Purpose: Defines the Class DataType
 ***********************************************************************/
package com.tuananh.radnom.model.thresholding;

import java.util.*;

import javax.xml.bind.annotation.XmlRootElement;

/** @pdOid 4605405f-542c-4ad2-a207-e930c7b8279f */
@XmlRootElement
public abstract class DataType {
	/** @pdOid d0bf2da8-202c-4a91-84fa-19456e582fd8 */
	private String name;

	/**
	 * @param value1
	 * @param value2
	 * @pdOid a97375eb-a47a-4543-82c7-df54a2dc17ee
	 */
	public abstract boolean isHigher(String value1, String value2);

	/**
	 * @param value1
	 * @param value2
	 * @pdOid 850e5aee-9cac-4949-a889-5981db447587
	 */
	public abstract boolean isLower(String value1, String value2);

	/**
	 * @param value1
	 * @param value2
	 * @pdOid 2cf21c33-9643-4971-9053-7786f0915db2
	 */
	public abstract boolean isEqual(String value1, String value2);

	public boolean isContain(String value1, String value2) {
		if (value1.contains(value2))
			return true;
		return false;
	}

	/**
	 * @param value
	 * @pdOid 39ebf537-0f85-4f4e-b116-a5a1001d8048
	 */
	public abstract Object parse(String value);

	public abstract String toString();
}